package DBLayer;
import java.util.ArrayList;
import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import ModelLayer.SalesOrder;

public class DBSalesOrderTest {
	private DBSalesOrder dbSalesOrder;

	@Before
	public void setUp() throws Exception {
		dbSalesOrder = new DBSalesOrder();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testDBSalesOrder() {
		
		fail("Not yet implemented");
	}

	@Test
	public void testGetAllSalesOrders() {
		//System.out.print(dbSalesOrder.getAllSalesOrders(boolean, retriveAssociation));
		fail("Not yet implemented");
		
	}

	@Test
	public void testFindSalesOrder() {
		SalesOrder saleObject = dbSalesOrder.findSalesOrder(1,false);
		if(saleObject != null)
		{
			System.out.print(saleObject.getSalesID() + "  " + saleObject.getPrice() + " " + saleObject.getSaleDate() + " " + saleObject.getDeliveryStatus() + " " + saleObject.getDeliveryDate() + " " + saleObject.getCustomer() + " "  + saleObject.getEmployee());
		}
		fail("Sale not found");
	}

	@Test
	public void testInsertSalesOrder() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateSalesOrder() {
		fail("Not yet implemented");
	}

	@Test
	public void testDelete() {
		fail("Not yet implemented");
	}

}
